package com.petrochina.cloudconfig;

import org.h2.server.web.DbStarter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@SpringBootApplication
@EnableScheduling
public class CloudConfigApplication extends WebMvcConfigurerAdapter {




	public static void main(String[] args) {
		SpringApplication.run(CloudConfigApplication.class, args);
	}




	@Override
	public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
		//关闭后缀匹配
		configurer.favorPathExtension(false);
	}






}
